package cn.tedu._02notice.controller;


import cn.tedu._02notice.pojo.dto.UserLoginParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@Tag(name = "02-用户管理接口")
@RequestMapping("/v1/user")
public class UserController {
    @RequestMapping("login")
    @Operation(summary = "用户登录")
    @ApiOperationSupport(order = 10)
    public String login(@RequestBody UserLoginParam userLoginParam) {
        log.debug("用户名：" + userLoginParam.getUsername());
        return "登录成功！";
    }
}
